package com.csy.rabbit.admin.clients;

import com.csy.rabbit.admin.clients.Impl.MerchantClientImpl;
import com.csy.rabbit.commit.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author CSY
 * value:里面是你的微服务模块名
 * fallback：降级服务
 */

@FeignClient(value = "rabbit-merchant",fallback = MerchantClientImpl.class)
public interface MerchantClient {
    //客户端的地址必须跟被调用者保持一致
    @GetMapping("merchant/method/{str}")
     BusinessException method(@PathVariable String str);
}
